const goodsDao = require('../dao/goodsDao')
// 根据id查询院线
module.exports.findById = async function (id) {
    return await goodsDao.findById(id);
}

// 查询
module.exports.findAll = async function (searchObj, page) {
    return await goodsDao.findAll(searchObj, page);
}

// 删除
module.exports.delete = async function (id) {
    return await goodsDao.delete(id);
}

// 修改
module.exports.update = async function (id, matching) {
    return await goodsDao.update(id, matching);
}

// 增加
module.exports.insert = async function (matching) {
    return await goodsDao.insert(matching);
}